﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace NBA.UI.web
{
    public partial class Test : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string[] x = {"Jan", "Feb", "Mar", "Apr", "May", "Jun",
                    "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"};
            LineChart1.Title = "Title Test";
            LineChart1.SubTitle = "SubTitle Test";
            LineChart1.xAxis = x.ToList();
            LineChart1.yAxis = new Axis() { Title = "Y Title", Line = new PlotLines { Value = 0, Width = 1, Color = "#808080" } };

            List<Series> seriesSet = new List<Series>(){
                new Series(){
                    Name= "Tokyo",
                    Data = new List<double>() {7.0, 6.9, 9.5, 14.5, 18.2, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6}
                }, 
                new Series{
                    Name="New York",
                    Data = new List<double>() {-0.2, 0.8, 5.7, 11.3, 17.0, 22.0, 24.8, 24.1, 20.1, 14.1, 8.6, 2.5}
                }
            };
            LineChart1.SeriesSet = seriesSet;
        }       
    }
}